/** 
 * @author (Gruppe G) 
 * @version (04/18/2012)
 */

package ControlLayer;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class AddressCtrTest
{
    /**
     * Testing the creation of a person entry in the array.
     */
    @Test
    public void createPerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.createPerson("Richard M. Aiken", "1882 Garfield Road", "IL 61465", "New Windsor", "309-667-6047");
    }

    /**
     * Testing the deletion of a person entry in the array.
     */
    @Test
    public void deletePerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.createPerson("Richard M. Aiken", "1882 Garfield Road", "IL 61465", "New Windsor", "309-667-6047");
        addressC1.deletePerson("22264043");
    }

    /**
     * Testing to find/get a person entry in the array.
     */
    @Test
    public void findPerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.createPerson("Richard M. Aiken", "1882 Garfield Road", "IL 61465", "New Windsor", "309-667-6047");
        addressC1.getPerson("22264043");
    }
}





